package cn.kgc.dao;

import cn.kgc.entity.Provider;

import java.util.List;

/**
 * Created by Administrator on 2020/3/10.
 */
public interface ProviderMapper {

    List<Provider> queryByCodeAndName(Provider provider);

    Provider queryById(Integer id);

    //删除指定供应商
    Integer delete(Integer id);

    //验证供应商编号
    List<Provider> queryByCode(String code);

    //查询所有供应商
    List<Provider> queryAll();

    //添加供应商
    Integer save(Provider provider);

    //修改供应商信息
    Integer update(Provider provider);
}
